.form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.samples {
  margin-top: 24px;
  border-top: 1px solid #f0f0f0;
  padding-top: 24px;
}

.sampleItem {
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}

.sampleRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sampleField {
  margin-bottom: 0;
  flex: 1;
}

.deleteButton {
  position: absolute;
  top: 16px;
  right: 16px;
}

.submitButton {
  margin-top: 24px;
  text-align: center;
}

.form :global(.w-md-editor) {
  background-color: #fff;
}

.form :global(.w-md-editor-text-pre > code),
.form :global(.w-md-editor-text-input) {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.form :global(.w-md-editor-toolbar) {
  border-bottom: 1px solid #d9d9d9;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .formGrid {
    grid-template-columns: 1fr;
  }
  
  .form {
    padding: 16px;
  }

  .sampleRow {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form :global(.w-md-editor) {
    max-height: 200px;
  }
}

/* 标签选择相关样式 */
.hiddenFormItem {
  display: none; /* 隐藏原始表单项 */
}

.tagsContainer {
  margin-bottom: 24px;
}

.tagsLabel {
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.85);
}

.tagsWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  min-height: 40px;
}

.tagItem {
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tagItem:hover {
  opacity: 0.8;
}

.newTagButton {
  background-color: #fff;
  border-style: dashed;
  cursor: pointer;
  font-size: 12px;
  padding: 1px 8px;
} 